package edu.sctu.practice.class02.hujie.cgs.day20151105practice;
//学习先抽象类
//增加一个知识：封装 初步了解封装

/**
 * Created by hj on 2015/11/5.
 */

public class Study {
    //封装
    public void process() {
        openComputer();
        learn();
        closeComputer();
    }

    public String openComputer() {
        System.out.println("打开台式机");
        return null;
    }

    public String learn() {
        System.out.println("教室授课");
        System.out.println("网页教程");
        return null;
    }

    public String closeComputer() {
        System.out.println("关闭台式机");
        return null;
    }

    public static void main(String[] args) {
//        Study one=new Study();
//        one.openComputer();
//        one.learn();
//        one.closeComputer();
        new Study().process();//简写
        new HtmlLearning().process();
    }

}
